﻿using Common;

namespace TeamIce
{
    public struct VectorSteps : IPosition
    {
        public Vector Vector;
        public int Steps;

        public VectorSteps(Vector v, int s)
        {
            Vector = v;
            Steps = s;
        }

        public Player GetClosest(Team team)
        {
            return Vector.GetClosest(team);
        }

        public float GetDistanceTo(IPosition obj)
        {
            return Vector.GetDistanceTo(obj);
        }

        public Vector Position
        {
            get { return Vector.Position; }
        }

        public float X
        {
            get { return Vector.X; }
            set { Vector.X = value; }
        }

        public float Y
        {
            get { return Vector.Y; }
            set { Vector.Y = value; }
        }

        public override string ToString()
        {
            return Vector.ToString() + ", " + Steps;
        }
    }
}
